using System;
using System.Collections;
using System.Collections.Generic;

using Ecreate.Popedom;

namespace Ecreate.Popedom
{
    public partial class tGrouplevel : BusinessBase<string>
    {
        #region Declarations

		private string _levelname = null;
		private string _levelformat = null;
        private int? _flevel = null;

        public  virtual int? Flevel
        {
            get { return _flevel; }
            set { _flevel = value; }
        }

        private IList<Ecreate.Popedom.tGroup> _Groups;
		
		#endregion

        #region Constructors



        public virtual IList<Ecreate.Popedom.tGroup> Groups
        {
              get { return _Groups; }
              set { _Groups = value; }
        }




        public tGrouplevel() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_levelname);
			sb.Append(_levelformat);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Levelname
        {
            get { return _levelname; }
			set
			{
				OnLevelnameChanging();
				_levelname = value;
				OnLevelnameChanged();
			}
        }
		partial void OnLevelnameChanging();
		partial void OnLevelnameChanged();
		
		public virtual string Levelformat
        {
            get { return _levelformat; }
			set
			{
				OnLevelformatChanging();
				_levelformat = value;
				OnLevelformatChanged();
			}
        }
		partial void OnLevelformatChanging();
		partial void OnLevelformatChanged();
		
        #endregion
    }
}
